﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WEBDT.ViewModel.TintucModel>" %>

<link href="../../../../Content/style.css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
    $(function () {
        $("#date").datepicker();
    });
</script>
<form id="form" enctype="multipart/form-data" method="post">
    <fieldset id="Account">
        <input  name="kiemtra"  type="hidden"    value="<%=Model.kiemtra %>" />
        <input  name="matintuc"     type="hidden"    value="<%=Model.Matintuc %>" />
        <div class="elem">
            <label for="tieude">Tiêu đề</label>
            <input id="tieude" name="tieude" type="text" value="<%=Model.TieuDe %>" />
        </div>
        <div class="elem">
            <label for="noidung">Nội Dung</label>
            <input id="noidung" name="noidung" type="text" value="<%=Model.NoiDung %>" />
        </div>
        <div class="elem">
            <label for="date">Ngày Gửi</label>
            <input id="date" name="date" type="text" value="<%=Model.NgayGui %>" />
        </div>
        <div class="elem">
            <label for="nguoigui">Người Gửi</label>
            <input id="nguoigui" name="nguoigui" type="text" value="<%=Model.NguoiGui %>" />
        </div>
        <div class="elem">
            <label>Loại Tin tức </label>
            <%=Html.DropDownList("maloai",(IEnumerable<SelectListItem>) ViewData["maloai"]) %> 
        </div>
        <button type="submit">Save</button>
        <button type="reset">Reset</button>
    </fieldset>
</form>